$('.pane3').html("<%= escape_javascript(render :partial => 'teams/form',:locals=>{:project=>@project}) %>")
$(document).foundation({
    tab: {
        callback: function (tab) {
        }
    }
});
window.location = '#pane3'